package view.game;

import org.eclipse.swt.events.PaintEvent;
import org.eclipse.swt.events.PaintListener;
import org.eclipse.swt.widgets.Canvas;
import org.eclipse.swt.widgets.Composite;

public class Board extends Canvas{
	
	int[][] boardData; // the data of the board
	
	public Board(Composite parent, int style) {
	
		super(parent, style);  // call canvas CTOR
		
		// add the paint listener
		addPaintListener(new PaintListener() {
			
			public void paintControl(PaintEvent e) {
				
				if(boardData!=null){
					//... 
				}
				
				
			}
			
		});
		
		
	}
	 public void setData(int[][] boardData){ 
		 this.boardData = boardData;
	 }
		

}
